package com.example.testservice.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pactera
 * @since 2021-08-25 星期三 16:53
 */
@RestController
public class TestController {

  @Autowired
  private SecurityProperties securityProperties;

  @RequestMapping("/test")
  public SecurityProperties test() {
    System.out.println("securityProperties = " + securityProperties);
    return securityProperties;
  }
}
